package com.jk.smartelderlycare.controller;

import com.jk.smartelderlycare.dto.SysPurchaseput;
import com.jk.smartelderlycare.interfaces.SysPurchaseputServiceApi;
import com.jk.smartelderlycare.pojo.PagedResponse;
import com.jk.smartelderlycare.service.SysPurchaseputService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author hhk
 * @version 1.0
 * @ClassName SysPurchaseputController
 * @program: smart-elderly-care
 * @description: TODO
 * @date 2024/12/5 21:45
 */
@Slf4j
@RestController
public class SysPurchaseputController implements SysPurchaseputServiceApi {

    @Autowired
    private SysPurchaseputService sysPurchaseputService;

    @Override
    public PagedResponse<SysPurchaseput> findSysPurchaseputPaginationList(SysPurchaseput sysPurchaseput, Integer pageNum, Integer pageSize) {
        return sysPurchaseputService.findSysPurchaseputPaginationList(sysPurchaseput,pageNum,pageSize);
    }

    @Override
    public void addSysPurchaseput(SysPurchaseput sysPurchaseput) {
        sysPurchaseputService.addSysPurchaseput(sysPurchaseput);
    }

    @Override
    public void deleteSysPurchaseputById(Long purchasePutid) {
        sysPurchaseputService.deleteSysPurchaseputById(purchasePutid);
    }

    @Override
    public void upStatusById(Long purchasePutid) {
        sysPurchaseputService.upStatusById(purchasePutid);
    }

    @Override
    public void downStatusById(Long purchasePutid) {
        sysPurchaseputService.downStatusById(purchasePutid);
    }

    @Override
    public void findSysPurchaseputById(Long purchasePutid) {
        sysPurchaseputService.findSysPurchaseputById(purchasePutid);
    }

    @Override
    public void updateSysPurchaseput(SysPurchaseput sysPurchaseput) {
        sysPurchaseputService.updateSysPurchaseput(sysPurchaseput);
    }

    @Override
    public List<SysPurchaseput> findSysProcurement() {
        return sysPurchaseputService.findSysProcurement();
    }

    @Override
    public void addProcurement(SysPurchaseput sysPurchaseput) {
        sysPurchaseputService.addProcurement(sysPurchaseput);
    }

    @Override
    public void ShutdownStatusById(Long purchasePutid) {
        sysPurchaseputService.ShutdownStatusById(purchasePutid);
    }
}
